#!/usr/bin/env python
# -*- coding: utf-8 -*-
#coding=utf8

# 本文件由自动工具 proto.py 自动生成，请勿修改
# filename msg8000_csbuf.py
# package ptl

from ptl.base_csbuf import *


# message Req8001
class Req8001:
	def __init__(self):
		self.protoid = 8001
		self.benisonId = 0

	def Marshal(writer):
		writer.setUint32(self.benisonId, 1)

	def Unmarshal( reader):
		self.benisonId = reader.getUint32(1)
# message Resp8001
class Resp8001:
	def __init__(self):
		self.protoid = 8001
		self.status = 0

	def Marshal(writer):
		writer.setUint8(self.status, 1)

	def Unmarshal( reader):
		self.status = reader.getUint8(1)
# message Req8002
class Req8002:
	def __init__(self):
		self.protoid = 8002
		pass

	def Marshal(writer):
		pass

	def Unmarshal( reader):
		pass
# message Resp8002
class Resp8002:
	def __init__(self):
		self.protoid = 8002
		self.value = []

	def Marshal(writer):
		countvalue = len(self.value)
		writer.setArray(countvalue, 1)
		for i in range(countvalue):
			writer.setMessage(0)
			self.value[i].Marshal(writer)
			writer.endSetMessage()

	def Unmarshal( reader):
		for i in range(reader.getArray(1)):
			msg = BenisonStairsInfo() 
			reader.getMessage(0)
			msg.Unmarshal(reader)
			reader.endGetMessage()
			self.value.append(msg)
